package com.pearl.web.demo.doc;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;

/**
 * @author TangDan
 * @version 1.0
 * @since 2023/3/20
 */
@RestController
@RequestMapping("/app1")
@Tag(name = "测试管理", description = "测试管理详细描述")
public class App1Controller {
    @PostMapping("/create")
    @Operation(summary = "创建用户", description = "创建用户详细描述")
    public String value(@RequestBody User user) {
        return "";
    }

    @GetMapping("/select")
    @Parameters(
            @Parameter(description = "名称", example = "张三", name = "name")
    )
    @Operation(summary = "查询用户", description = "创建用户详细描述")
    public String value(@RequestParam String name) {
        return "";
    }
}
